# -*- encoding: utf-8 -*-
"""

PyCharm 18通过使用boxplot来绘制箱线图
2024年 10月 27日 15:28
coded by wenyang
文件的主要内容


"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl



def main():
    mpl.rcParams['font.sans-serif'] = ['SimHei']
    mpl.rcParams['axes.unicode_minus'] = False
    x = np.random.randn(1000)
    plt.boxplot(x)
    plt.xticks([1], ["随机数生成器AlphaRM"])
    plt.ylabel("随机数值")
    plt.title("随机数生成器抗干扰能力的稳定性")
    plt.grid(axis = "y", ls = ":", lw = 1, color = "gray", alpha = 0.4)
    plt.title("箱线图的绘制")
    plt.show()


if __name__ == "__main__":
    main()
